from xadmin.lib.crprtrazability import CRPRTrazability
from xadmin.lib.prprodtrazability import PRPRODTrazability
from xadmin.lib.crprprodtrazability import CRPRPRODTrazability

class TrazabilityFactory(object):
    def getInstance(self, type):
        if type == 'crpr':
            return CRPRTrazability()

        elif type == 'prprod':
            print 'hola'
            return PRPRODTrazability()

        elif type == 'crprprod':
            return CRPRPRODTrazability()
        else:
            return None
